<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<title>北京赛车开奖结果</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta content="Copyright ©com 版权所有" name="copyright">
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>css/all_new.css" />
		<link rel="shortcut icon" type="image/x-icon"
			href="<%=basePath%>favicon.ico" />
		<script type="text/javascript">var basePath = "<%=basePath%>";</script>	
		<script type="text/javascript" src="<%=basePath%>js/jquery.min.js?20161126"></script>
		<script type="text/javascript" src="<%=basePath%>js/layer/layer.js?20161126"></script>
		<script type="text/javascript" src="<%=basePath%>js/Tool.js?20161129"></script>
	</head>
	<body id="bodyModule" class="skin_brown">
		<div style="" class="conLeft" id="conLeft">
			<div class="logo">
				<img src="<%=basePath%>images/logo_sscgb_20160513174944.png"
					width="150" />
			</div>
			<div class="left-content">
				<div class="left_corll">
					<div class="main-nav">
						<p style="width: 210px; margin: 0pt auto;">
							<span> <a href="<%=basePath%>user/user_tz" title="">下注状况</a></span> |
							<span> <a href="<%=basePath%>cathectic/cathectic_history">两周情况</a></span> |
							<span> <a href="<%=basePath%>user/user_history">帐户历史</a></span> 
							<span class="on"> <a href="<%=basePath%>win/win_num_list" title="">开奖结果</a></span> |
							<span> <a href="<%=basePath%>user/user_news" title="">个人资讯</a></span> |
							<span> <a href="<%=basePath%>user/pk_rule" title="">游戏规则</a> </span> 
							<span> <a href="<%=basePath%>user/password" title="">修改密码</a> </span> |
							<span> <a href="<%=basePath%>user/logout" title="">退出系统</a></span>
						</p>
					</div>
					<div style="" id="leftLoader">
						<div id="side_left" class="side_left">
							<div id="leftUser">
								<span id="autoRefreshspan" class="hidden"></span>
								<div id="accountInfo" class="accountInfo">
									<table class="struct_table_accountInfo  bg_white dataArea">
										<colgroup>
											<col class="col1">
											<col class="col2">
										</colgroup>
										<tbody>
											<tr>
												<td class="inner_text">
													用户帐号：
												</td>
												<td id="account">
													<em>${sessionUser.userNo}</em>
												</td>
											</tr>
											<tr>
												<td class="inner_text">
													信用额度：
												</td>
												<td id="credit">
													<em>${sessionUser.creditAmt}</em>
												</td>
											</tr>
											<tr>
												<td class="inner_text">
													信用余额：
												</td>
												<td class="bold" id="re_credit">
													<em>${sessionUser.userBalance}</em>
												</td>
											</tr>
											<tr>
												<td class="inner_text">
													已下金额：
												</td>
												<td id="total_amount1">
													<em></em>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
								<div id="newOrder" class="box new-order">
									<ul id="refresh_title">
										<li class="new_fresh_title">
											最新注单
										</li>
										<li class="rushBtn">
											<a id="rushBtn" class=" btn_r elem_btn btn"
												href="javascript:void(0)">刷新</a>
										</li>
									</ul>
									<div class="neworderListBox">
										<table class="struct_table_newOrder" cellspacing="0">
											<colgroup>
												<col class="col1">
												<col class="col2">
												<col class="col3">
												<col class="col4">
											</colgroup>
											<thead><tr class="sub_title bg_deep_blue"><td>号码</td><td>赔率</td><td>金额</td><td>时间</td></tr></thead>
											<tbody id="openData" class="openData"></tbody>
										</table>
									</div>
								</div>
								<div id="wangzhandh">
									<table class="struct_table_accountInfo  bg_white dataArea w100"
										cellspacing="0">
										<colgroup>
											<col class="col1">
											<col class="col2">
										</colgroup>
										<tbody>
											<tr id="office_site">
												<td colspan="2">
													<table class="w100">
														<tbody>
															<tr>
																<th colspan="2" class="kj_tit">
																	开奖网站导航
																</th>
															</tr>
															<tr class="tr_office_site">
																<th class="w50">
																	<a target="_blank" href="http://www.bwlc.net/buy/trax/">北京赛车</a>
																</th>
																<th>
																	<a target="_blank"
																		href="http://www.shishicai.cn/cqssc/touzhu/">重庆时时彩</a>
																</th>
															</tr>
														</tbody>
													</table>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div style="background: none repeat scroll 0% 0% rgb(255, 255, 255);"
			class="conRight" id="conRight">
			<div style="display: block;" class="header header-bg" id="header">
				<div class="header-content header-bg">
					<div class="header-op">
						<div class="top-op" id="select_sys">
							<a href="<%=basePath%>user/double_disc"
								class="switch nav_longstring switch-on" id="pk10_sys">北京賽車(PK10)</a>
							<a href="<%=basePath%>wait"
								class="switch nav_longstring" id="ssc_sys">重庆时时彩</a>
						</div>
					</div>
					<div class="sub-nav" id="integrate-nav">
						<div style="display: block;" id="elem_pk10"
							class="elem_groupFilter pk10 hide">
							<a href="<%=basePath%>user/double_disc">两面盘</a> |
							<a href="<%=basePath%>user/double_1_5">1 ~ 5</a> |
							<a href="<%=basePath%>user/double_6_10">6 ~ 10</a> |
							<a href="<%=basePath%>user/double_group" class="w5em">冠亚军组合</a>
						</div>
					</div>
				</div>
			</div>
			<div id="layout" class="container">
				<div style="display: block;" class="main-content bet-content" id="layoutright">
					<div class="mains_corll">
						<div style="" id="rightLoader">
							<div class="pk10 result struct_table_center" id="result_pk10">
								<div style="height: 4px; visibility: hidden; font-size: 0pt;"></div>
								<div class="title">
									<span class="sub_title_color"> 开奖日期：</span>
									<input value="${date}" id="dateName" type="text">
									&nbsp;&nbsp;
									<select id="rusult_md_cs">
										<option value="pk10" selected="selected">
											北京赛车（PK10）
										</option>
										<option value="ssc">
											重庆时时彩
										</option>
									</select>
									&nbsp;&nbsp;
									<a href="javascript:void(0)" class="btn_m elem_btn"
										id="ball_btn">查询</a>
								</div>
								<table class="dataArea t1">
									<thead>
										<tr>
											<th>
												期数
											</th>
											<th>
												开奖时间
											</th>
											<th colspan="10">
												开出号码
											</th>
											<th colspan="3">
												冠亚和
											</th>
											<th>
												冠军
											</th>
											<th>
												亚军
											</th>
											<th>
												第三名
											</th>
											<th>
												第四名
											</th>
											<th>
												第五名
											</th>
										</tr>
									</thead>
									<tbody id="result_tb">
										<c:forEach var="win" items="${winNumList.list }">
											<tr>
												<td>
													${win.termCd }
												</td>
												<td>
													<fmt:formatDate value="${win.winTime}" type="both"
														pattern="MM-dd - HH:mm" />
												</td>
												<fmt:parseNumber var="num1" type="number" value="${win.num1 }" />
												<fmt:parseNumber var="num2" type="number" value="${win.num2 }" />
												<fmt:parseNumber var="num3" type="number" value="${win.num3 }" />
												<fmt:parseNumber var="num4" type="number" value="${win.num4 }" />
												<fmt:parseNumber var="num5" type="number" value="${win.num5 }" />
												<fmt:parseNumber var="num6" type="number" value="${win.num6 }" />
												<fmt:parseNumber var="num7" type="number" value="${win.num7 }" />
												<fmt:parseNumber var="num8" type="number" value="${win.num8 }" />
												<fmt:parseNumber var="num9" type="number" value="${win.num9 }" />
												<fmt:parseNumber var="num10" type="number" value="${win.num10 }" />
												<td colspan="10" id="${win.termCd }">
													<span class="number num${num1 }"></span>
													<span class="number num${num2 }"></span>
													<span class="number num${num3 }"></span>
													<span class="number num${num4 }"></span>
													<span class="number num${num5 }"></span>
													<span class="number num${num6 }"></span>
													<span class="number num${num7 }"></span>
													<span class="number num${num8 }"></span>
													<span class="number num${num9 }"></span>
													<span class="number num${num10 }"></span>
												</td>
												<td class="bold">
													${num1 + num2}
												</td>
												<td class="bold">
													<c:choose>
														<c:when test="${num1 + num2 > 11}">
															<span class="red">大 </span>
														</c:when>
														<c:otherwise>
															<span class="bold">小 </span>
														</c:otherwise>
													</c:choose>
													
												</td>
												<td class="bold">
												
													<c:choose>
														<c:when test="${(num1 + num2) % 2 == 0 }">
															双 
														</c:when>
														<c:otherwise>
															单
														</c:otherwise>
													</c:choose>
												</td>
												<td class="bold">
													<c:choose>
														<c:when test="${num1 > num10 }">
															<span class="bluer">龍 </span>
														</c:when>
														<c:otherwise>
															<span class="bold">虎 </span>
														</c:otherwise>
													</c:choose>
												</td>
												<td class="bold">
													<c:choose>
														<c:when test="${num2 > num9 }">
															<span class="bluer">龍 </span>
														</c:when>
														<c:otherwise>
															<span class="bold">虎 </span>
														</c:otherwise>
													</c:choose>
												</td>
												<td class="bold">
													<c:choose>
														<c:when test="${num3 > num8 }">
															<span class="bluer">龍 </span>
														</c:when>
														<c:otherwise>
															<span class="bold">虎 </span>
														</c:otherwise>
													</c:choose>
												</td>
												<td class="bold">
													<c:choose>
														<c:when test="${num4 > num7 }">
															<span class="bluer">龍 </span>
														</c:when>
														<c:otherwise>
															<span class="bold">虎 </span>
														</c:otherwise>
													</c:choose>
												</td>
												<td class="bold">
													<c:choose>
														<c:when test="${num5 > num6 }">
															<span class="bluer">龍 </span>
														</c:when>
														<c:otherwise>
															<span class="bold">虎 </span>
														</c:otherwise>
													</c:choose>
												</td>
											</tr>
										</c:forEach>
									</tbody>
								</table>
								${winNumList.pageStr}
							</div>
						</div>
					</div>
				</div>
				<div class="minWidth"></div>
			</div>
		</div>
	</body>
<script type="text/javascript">
	dataAjax();
</script>
</html>